package com.example.gw_back_end.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.gw_back_end.domain.PageParam;
import com.example.gw_back_end.domain.PageResult;
import com.example.gw_back_end.domain.SearchParams;
import com.example.gw_back_end.domain.dto.UsersTypeCount;
import com.example.gw_back_end.domain.entities.User;
import jakarta.servlet.http.HttpServletRequest;

public interface UserService extends IService<User> {

    boolean register(User user);

    String login(String account, String password,String client);

    boolean logout(HttpServletRequest request);

//    boolean addEmail(String email);

//    boolean addTelephone(String telephone);

    User getInfo();

    PageResult<User> getUserList(PageParam pageParam,Integer accountType);

    User getUserInfo(Integer id);

    boolean updateInfo(User user);

    UsersTypeCount getUsersTypeCount();

    PageResult<User> searchUser(SearchParams searchParams);

    boolean confirmPassword(String password);

}
